<?php

// 广告位表

namespace app\console\model;
use think\Db;
use think\Model;
use think\Request;
use app\common\trilateral\Classify as ClassifyAlias;
use think\Session;
use think\Hook;

class DrawRecords extends Model
{
    // 模型事件
    protected static function init()
    {

        self::event('before_write', function ($data) {
            if($data->status == 2){
                $data->status_time = date('Y-m-d H:i:s',time());
            }
        });
    }



}